const child_process = require("node:child_process")

const primaryProcess = child_process.fork("./child_process/child.js")
const primaryProcess2 = child_process.fork("./child_process/child2.js")

console.log(primaryProcess === primaryProcess2);

primaryProcess.send("i am your father process")
primaryProcess.on("message", (msg) => {
    console.log("Message from child: ", msg)
})

primaryProcess2.send("i am your father process")
primaryProcess2.on("message", (msg) => {
    console.log("Message from child: ", msg)
})